<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>历史合同基础表</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
		 
	        
			<!-- #if($shiro.hasPermission("datacontract:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end -->
			<!-- #if($shiro.hasPermission("datacontract:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end -->
			<!-- #if($shiro.hasPermission("datacontract:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end -->
			<!-- <a class="btn btn-primary" id="imp" @click="imp" style="float:right"><i class="fa fa-plus"></i>&nbsp;导入excel</a> --> 
			<div class="grid-btn" style="display:inline">
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="value" @keyup.enter="query" placeholder="合同编号/合同名称/房源地址/签单人姓名">
			</div>
			
		</div>
		<div class="grid-btn" style="display:inline">
			<div class="form-group col-sm-2">
				<input id="calTime" type="text" class="form-control" v-model="calTime" @keyup.enter="query" placeholder="合同年月">
			</div>
			<a class="btn btn-default" @click="query">查询</a>
		</div>
			<a class="btn btn-primary" id="sure" @click="up" style="display:none;float:right" ><i class="fa fa-plus"></i>&nbsp;确定</a> 
            <input type="file" id="uploadFile" style="display:none" name="uploadFile"/>   
		</div>
	   <table id="jqGrid" style="margin-bottom:40px"></table>
	    <div id="jqGridPager" style="width: window.screen.availWidth- 260; height: 40px; margin-bottom: 18px; background: #fff; float: left;"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">合同编号，同一个合同编号唯一</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.contractno" placeholder="合同编号，同一个合同编号唯一"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">合同名称或者合同标题</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.contractname" placeholder="合同名称或者合同标题"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">合同年月</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.contractmonth" placeholder="合同年月"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">合同日期</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.contractdate" placeholder="合同日期"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.contracttypeid" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.address" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.contractmoney" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.haspaidmoney" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.nopaidmoney" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">合同签约人ID</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.employeeid" placeholder="合同签约人ID"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">分成人ID列表，中间用,隔开</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.splitemployeeidlist" placeholder="分成人ID列表，中间用,隔开"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">多人分层比例</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.splitpercent" placeholder="多人分层比例"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">主管编号，用逗号隔开</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.directorno" placeholder="主管编号，用逗号隔开"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">分店编号，用逗号隔开</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.storeno" placeholder="分店编号，用逗号隔开"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">区域编号，用逗号隔开</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.areano" placeholder="区域编号，用逗号隔开"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">大区编号，用逗号隔开</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.bigareano" placeholder="大区编号，用逗号隔开"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">城市编号，用逗号隔开</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.cityno" placeholder="城市编号，用逗号隔开"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.excol" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.memo" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.createtime" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.createby" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.updatetime" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.updateby" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label"></div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="dataContract.state" placeholder=""/>
			    </div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="${rc.contextPath}/js/zjdc/datacontract.js?_${date.systemTime}"></script>
<script src="${rc.contextPath}/js/laydate/laydate.js"></script>
<script type="text/javascript">
laydate.render({
	  elem: '#calTime', //指定元素
	  type:'month',
	  max:'currentmonth'
	});
</script>
</body>
</html>